package com.example.commonmybatisplus;

import com.example.commonmybatisplus.config.LoadPropertySourceYmlConfig;
import com.example.commonmybatisplus.entity.UserEntity;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author ifredom
 * @Date 2022/5/27 11:10:23
 * @ClassName CommonMybatisPlusApplication
 * @Version 1.0.0
 * @Description 描述
 **/
@SpringBootApplication
public class CommonMybatisPlusApplication {

    public static void main(String[] args) {
        SpringApplication.run(CommonMybatisPlusApplication.class, args);
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserEntity author = (UserEntity) context.getBean("author");
        System.out.println(author.getName());
    }

}


